/* 版心 */
.main{
    width: 1016px;
    margin: 0px auto;
}
/* 版心 */
body{
    overflow-x: hidden;
    background-color: #F5F5F5;
}

// 头部
.head{
    height: 60px;
    line-height: 56px;
    img{
        height: 50px;
    }
    span{
        float: right;
        font-size: 20px;
        color: #7E7E7E;
    }
}

// 购物车

.content{
    padding: 10px 0;
    .empty{
        display: none;
        background: #f9f9f9 url(../imgs/emptycart.jpg) 250px 50px no-repeat;
        border: 1px solid #d9d9d9;
        border-radius: 5px;
        padding: 90px 90px 90px 390px;
        margin: 30px 0;
        font-size: 16px;
        .follow{
            display: inline-block;
            a{
                color: #06c;
            }
        }
    }
    .havegoods{
        border: 1px solid #ddd;
        background: #fffefd;
        margin-bottom: 20px;
        .thead{
            height: 36px;
            border-bottom: 1px solid #ddd;
            clear: both;
            background: #f3f3f3;
            div{
                height: 36px;
                float: left;
                line-height: 36px;
                text-align: center;
                color: #666;
                border-right: 1px solid #fff;
                &:nth-of-type(1){
                    width: 435px;
                }
                &:nth-of-type(2){
                    width: 105px;
                }
                &:nth-of-type(3){
                    width: 95px;
                }
                &:nth-of-type(4){
                    width: 120px;
                }
                &:nth-of-type(5){
                    width: 120px;
                }
                &:nth-of-type(6){
                    width: 100px;
                    border-right:none ;
                }
            }
        }
        .checkall{
            position: relative;
            height: 30px;
            clear: both;
            line-height: 30px;
            padding: 0 0 0 40px;
            color: #666;
            border-bottom: 1px dashed #ddd;
            background: #f9f9f9;
            input{
                position: absolute;
                left: 12px;
                top: 9px;
                vertical-align: middle;
            }
            span{
                line-height: 30px;
                font-size: 14px;

            }
        }
        .nota{
            height: 4px;
            border-bottom: 1px solid #eee;
            background-color: #f3f3f3;
            font-size: 0;
            line-height: 0;
            span{
                display: none;
            }
        }
        .carcont{
            .goods{
                height: 65px;
                border-bottom: 1px solid #ddd;
                clear: both;
                div{
                    border-right: 1px solid #fff;
                    height: 65px;
                    line-height: 65px;
                    float: left;
                    text-align: center;
                    color: #333;
                    &:nth-of-type(1){
                        position: relative;
                        text-align: left;
                        width: 435px;
                        input{
                            vertical-align: top;
                            margin-top: 25px;
                            margin-left: 12px;
                        }
                        img{
                            height: 55px;
                            width: 55px;
                            margin: 5px;
                            overflow: hidden;
                        }
                        .bookname{

                            span{
                                display: inline-block;
                                width: 200px;
                                white-space: nowrap;
                                text-overflow: ellipsis;
                                overflow: hidden;
                                color: #06c;
                            }
                        }
                    }
                    &:nth-of-type(2){
                        width: 105px;
                    }
                    &:nth-of-type(3){
                        width: 95px;
                    }
                    &:nth-of-type(4){
                        width: 120px;
                    }
                    &:nth-of-type(5){
                        width: 120px;
                        button{
                            background: url(../imgs/icons.png) no-repeat;
                            width: 18px;
                            height: 13px;
                            outline: none;
                            border: none;
                            cursor: pointer;
                            &:nth-of-type(2){
                                background-position: -23px 0px;
                            }
                        }
                        input{
                            position: relative;
                            width: 40px;
                            text-align: center;
                            border: 1px solid #ddd;
                            border-radius: 2px;
                            height: 20px;
                            top: -1px;
                            left: 0px;
                        }
                    }
                    &:nth-of-type(6){
                        width: 100px;
                        color: #06c;
                        b{
                            font-weight: normal;
                            cursor: pointer;
                        }
                        border-right:none ;
                    }
                }
            }
        }
        .tfoot{
            .sum{
                height: 50px;
                background: #fff;
                .sum-left{
                    color: #06c;
                    line-height: 50px;
                    margin-left: 30px;
                    cursor: pointer;
                }
                .sum-right{
                    width: 360px;
                    float: right;
                    font-size: 13px;
                    div{
                        float: left;
                        &:nth-of-type(1){
                            width: 90px;
                            text-align: right;
                            padding-right: 10px;
                            line-height: 25px;
                            span{
                                color: #CC0000;
                                font-weight: bold;
                                font-size: 13px;
                            }
                        }
                        &:nth-of-type(2){
                            width: 260px;
                            p{
                                height: 25px;
                                padding-right: 10px;
                                line-height: 25px;
                                span{
                                    float: right;
                                }
                            }
                        }
                    }
                }
            }
            .total{
                height: 40px;
                background-color: #F3F3F3;
                div{
                    float: right;
                    width: 350px;
                    font-weight: bolder;
                    p{
                        height: 40px;
                        padding-right: 10px;
                        line-height: 40px;
                        span{
                            font-size: 16px;
                            color: #CC0000;
                            float: right;
                        }
                    }
                }
            }
        }
    }
}

.continue{
    a{
        float: left;
        b{
            display: block;
            width: 142px;
            height: 45px;
            background: url(../imgs/balance-button.jpg) no-repeat;
            cursor: pointer;
            background-position: 2px -4px;
        }
    }
    span{
        display: block;
        float: right;
        width: 208px;
        height: 45px;
        background: url(../imgs/balance-button.jpg) no-repeat;
        cursor: pointer;
        background-position: -144px -4px;
    }
}